package com.yao.shop.mapper;

import com.yao.shop.common.Page;
import com.yao.shop.pojo.ShopProductCategory;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface ShopProductCategoryMapper {

    ShopProductCategory getByParentIdAndName(ShopProductCategory shopProductCategory);

    void save(ShopProductCategory shopProductCategory);

    void update(ShopProductCategory shopProductCategory);

    ShopProductCategory get(Long id);

    void delete(Long id);

    List<ShopProductCategory> getByPage(Page<ShopProductCategory> page);

    Integer countByPage(Page<ShopProductCategory> page);

    List<ShopProductCategory> getSelectList();

    List<ShopProductCategory> getAll();

    List<ShopProductCategory> getNavList();

    List<ShopProductCategory> getAllSecond();

    List<ShopProductCategory> getAllTop();

    List<ShopProductCategory> getByIds(List<Long> categoryIds);

    List<ShopProductCategory> getByParentId(Long parentId);
}
